<div>
    <div class="action-bar">
        <button class="btn btn-primary" ng-click="toEditor()">新增</button>
    </div>
    <div class="table-responsive">
        <table class="table">
            <tr>
                <th>接收对象</th>
                <th>消息内容</th>
                <th>创建时间</th>
            </tr>
            <tr ng-repeat="data in result.list">
                <td>{{data.receiveUserType == 1 ? '订单方' : '工厂方'}}</td>
                <td>{{data.content}}</td>
                <td>{{data.createTime | date: 'yyyy-MM-dd HH:ss'}}</td>
            </tr>
            <tr ng-if="result.list.length == 0">
                <td class="text-center" colspan="3">没有数据</td>
            </tr>
        </table>
        <div class="pagination-bar" ng-if="result.list.length > 0">
            <uib-pagination
                    total-items="result.page.totalData"
                    ng-model="result.page.currentNo"
                    max-size="2"
                    items-per-page="result.page.everyPage"
                    first-text="第一页"
                    previous-text="上一页"
                    next-text="下一页"
                    last-text="最后页"
                    boundary-links="true"
                    boundary-link-numbers="true"
                    ng-model="result.page.currentNo"
                    ng-change="onPageChange()"
            ></uib-pagination>
        </div>

    </div>
</div>
